package edu.spec.wyn.week09.class2.homework1;

import java.util.ArrayList;
import java.util.List;

public class Dog extends Animal implements IPet {
    List sounds = new ArrayList();
    @Override
    public String cry() {
        return  (getName()+"的叫声是"+getSounds());
    }

    public Dog() {
    }

    public Dog(String name, List sounds, List foods) {
        super(name, sounds, foods);
    }
}
